<?php
	function KhoiTaoEditor($idTextArea, $numHeight)
	{
		$address ="/WebQTD/scripts/ckfinder/";
?>
<script type="text/javascript">
	
	var editor = CKEDITOR.replace('<?php echo $idTextArea; ?>',
	{
		// Load the German interface.
		language: 'vi',
		// Xem
		filebrowserBrowseUrl: 		'<?php echo $address; ?>ckfinder.html',
		filebrowserImageBrowseUrl: '<?php echo $address; ?>ckfinder.html?type=Images',
		filebrowserFlashBrowseUrl: '<?php echo $address; ?>ckfinder.html?type=Flash',
		// Upload
		filebrowserUploadUrl: 		'<?php echo $address; ?>core/connector/php/connector.php?command=QuickUpload&type=Files',
		filebrowserImageUploadUrl: '<?php echo $address; ?>core/connector/php/connector.php?command=QuickUpload&type=Images',
		filebrowserFlashUploadUrl: '<?php echo $address; ?>core/connector/php/connector.php?command=QuickUpload&type=Flash',
		
		height: <?php echo $numHeight; ?>,
		width : 750
	});
	
	CKFinder.setupCKEditor( editor, '<?php echo $address; ?>' ) ;
</script>
<?php
	}
?>